#ifndef BLOCK_H
#define BLOCK_H
#include "D3DApp.h"
#include "GameObject.h"
#include "dxut/DXUT.h"
#include "Building.h"

class Block : public GameObject
{
public:
	bool Create(std::vector<D3DXVECTOR3> v,D3DXVECTOR3 centre);

	void Render();

private:
	std::vector<D3DXVECTOR3> m_vCorners;
	LPDIRECT3DINDEXBUFFER9 m_Ib;
	LPDIRECT3DVERTEXBUFFER9 m_Vb;
	std::vector<Triangle> m_vRawTris;
	std::vector<Triangle> m_vPossibles;
	std::vector<Triangle> m_vBuildAreas;
	std::vector<Building*> m_pvBuildings;
};
#endif